<?php
namespace App\Repositories;
use Prettus\Repository\Eloquent\BaseRepository as RepositoryBase;
use Prettus\Repository\Events\RepositoryEntityDeleted;

abstract class BaseRepository extends RepositoryBase{
    public function deleteByPrimaryKeys($primaryKeys){

        $deleted = $this->model->destroy($primaryKeys);

        event(new RepositoryEntityDeleted($this, $this->model->getModel()));

        return $deleted;
    }
}
